package com.frcdi.qms.equipment.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import com.frcdi.qms.masterdata.domain.Method;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备验证记录对象 md_equipment_validation
 *
 * @author cell
 * @date 2023-12-19
 */
@ApiModel(value = "设备验证记录对象")
public class EquipmentValidation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long validationId;

    /** 设备id */
    @Excel(name = "设备id")
    private Long equipment;

    /** 执行的方法id */
    @Excel(name = "执行的方法id")
    private Long method;

    /** 设备修改前状态 */
    @Excel(name = "设备修改前状态")
    private String beforeStatus;

    /** 设备修改后状态 */
    @Excel(name = "设备修改后状态")
    private String endStatus;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 审核结果（0未审 1通过2未通过） */
    @Excel(name = "审核结果", readConverterExp = "0=未审,1=通过2未通过")
    private String auditResult;

    /** 执行次数 */
    private int validationNumber;

    private String taskId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @Excel(name = "任务状态", readConverterExp = "0未发起,1已发起,2已撤销")
    private String taskStatus;

    private EquipmentBase equipmentBase;
    private Method methodEntity;

    public EquipmentBase getEquipmentBase() {
        return equipmentBase;
    }

    public void setEquipmentBase(EquipmentBase equipmentBase) {
        this.equipmentBase = equipmentBase;
    }

    public Method getMethodEntity() {
        return methodEntity;
    }

    public void setMethodEntity(Method methodEntity) {
        this.methodEntity = methodEntity;
    }

    public void setValidationId(Long validationId)
    {
        this.validationId = validationId;
    }

    public Long getValidationId()
    {
        return validationId;
    }
    public void setEquipment(Long equipment)
    {
        this.equipment = equipment;
    }

    public Long getEquipment()
    {
        return equipment;
    }
    public void setMethod(Long method)
    {
        this.method = method;
    }

    public Long getMethod()
    {
        return method;
    }
    public void setBeforeStatus(String beforeStatus)
    {
        this.beforeStatus = beforeStatus;
    }

    public String getBeforeStatus()
    {
        return beforeStatus;
    }
    public void setEndStatus(String endStatus)
    {
        this.endStatus = endStatus;
    }

    public String getEndStatus()
    {
        return endStatus;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getAuditResult() {
        return auditResult;
    }

    public void setAuditResult(String auditResult) {
        this.auditResult = auditResult;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public int getValidationNumber() {
        return validationNumber;
    }

    public void setValidationNumber(int validationNumber) {
        this.validationNumber = validationNumber;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("validationId", getValidationId())
            .append("equipment", getEquipment())
            .append("method", getMethod())
            .append("beforeStatus", getBeforeStatus())
            .append("endStatus", getEndStatus())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("auditResult",getAuditResult())
            .append("validationNumber",getValidationNumber())
            .append("taskStatus", getTaskStatus())
            .toString();
    }
}
